﻿<%@ Page Title="Query" Language="C#" MasterPageFile="~/OutlookMaster.master" AutoEventWireup="true"
    CodeFile="Query.aspx.cs" Inherits="Pages_Query" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPage" runat="Server">
    <div class="PleaseWait">
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Pages/images/ajax-loader-circle.gif" />
            </ProgressTemplate>
        </asp:UpdateProgress>
    </div>
    <br />
    <asp:HyperLink ID="hypQueryList" runat="server" NavigateUrl="~/Pages/QueryList.aspx">Query List</asp:HyperLink>
    <br />
    <br />
    <asp:TextBox ID="txtQueryName" runat="server" Width="600"></asp:TextBox>
    <br />
    <asp:TextBox ID="txtQuery" runat="server" TextMode="MultiLine" Rows="10" Width="600px"></asp:TextBox>
    <br />
    <asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label>
    <br />
    <table width="600">
        <tr>
            <td>
                <asp:Button ID="btnExecute" runat="server" Text="Execute" OnClick="btnExecute_Click" />
            </td>
            <td align="center">
                <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
            </td>
            <td align="right">
                <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                    onclick="btnDelete_Click" />
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td>
                Select Table, IdColumn
            </td>
            <td>
                <asp:DropDownList ID="ddlTable" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlTable_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="ddlColumn" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <asp:GridView ID="gvQuery" runat="server" OnSelectedIndexChanged="gvQuery_SelectedIndexChanged" AlternatingRowStyle-BackColor="#d3d3d3"     Width="100%">
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
    </asp:GridView>
</asp:Content>
